package com.kunyi.web.service.identity.db.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kunyi.web.service.identity.db.entity.domain.LeafAlloc;

import java.util.List;

/**
 * @ClassName ILeftAllocService
 * @Description TODO
 * @Author zhenguo.zhuang
 * @Date 2024/7/5 17:22
 * @Version 1.0
 */
public interface ILeftAllocService extends IService<LeafAlloc> {
    /**
     * @author: zhenguo.zhuang
     * @Description 获取所有的数据
     * @Date 9:15 2024/7/9
     * @Param :
     * @return List<LeafAlloc>
     **/
    List<LeafAlloc> getAllLeafAllocs();

    /**
     * @author: zhenguo.zhuang
     * @Description 根据tag更新并返回
     * @Date 9:15 2024/7/9
     * @Param tag:
     * @return LeafAlloc
     **/
    LeafAlloc updateMaxIdAndGetLeafAlloc(String tag);
    /**
     * @author: zhenguo.zhuang
     * @Description 根据biz_tag和步长更新
     * @Date 9:16 2024/7/9
     * @Param leafAlloc:
     * @return LeafAlloc
     **/
    LeafAlloc updateMaxIdByCustomStepAndGetLeafAlloc(LeafAlloc leafAlloc);

    /**
     * @author: zhenguo.zhuang
     * @Description 获取所有的服务
     * @Date 9:16 2024/7/9
     * @Param :
     * @return List<String>
     **/
    List<String> getAllTags();


}
